<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
<head>
    <base href="<%=basePath%>">
    <title></title>
    <meta http-equiv="cache-control" content="no-cache">

    <script type="text/javascript" src="js/jquery-1.8.0.js"></script>
    <link rel="stylesheet" type="text/css" href="css/maintable.css" ></link>
</head>
<body>
<div class ="div_title">
    <div class="div_titlename">
        <img src="images/san_jiao.gif" >
        <span>系统中的角色</span>
    </div>
</div>

<table class="main_table" >
    <tr>
        <th>角色名称</th> 	<th>角色描述</th>	 	<th>操作</th>
    </tr>

    <c:forEach var="r" items="${roleList }">
        <tr>
            <td>${r.roleName }</td>
            <td>${r.des }</td>

            <td>
                <a href="RoleServlet?flag=searchForUpdate&id=${r.id}">修改</a> |
                <a href="RoleServlet?flag=delete&id=${r.id}" onclick="return confirm('确认要删除吗？')">删除</a> |
                <a href="RoleServlet?flag=userAllocation&id=${r.id}">权限分配</a> |
            </td>
        </tr>
    </c:forEach>
</table>

</body>
</html>
